<template>
  <div class="public-activity-detail">
    <!-- 活动详情内容 -->
  </div>
</template>

<script>
import activities from '../data/activities.js';

export default {
  data() {
    return {
      activity: null
    };
  },
  created() {
    const activityId = this.$route.params.id;
    this.activity = activities.find(activity => activity.id === parseInt(activityId));
  }
};
</script>